
<template>
  <div></div>
</template>
<script>
import { findLoginParam } from "@/api/login";


export default {
  name: "Auth",
  created() {
    findLoginParam(this.$route.query.redirect || '').then((res) => {
      if (navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1) {
        window.location.href = res.data.wloginOauthQr;
      } else {
        window.location.href = res.data.wloginQr;
      }
    });
  },
};
</script>
<style lang="scss" scoped></style>
